package device;

import interfaces.IGaugeValue;
import interfaces.IGaugeValueInt;

/**
 * @author Stefano&Davide
 * @version 1.0
 */

public class GaugeValueInt implements IGaugeValueInt {

	protected int val;

	public GaugeValueInt(int value) {
		val=value;
	}

	@Override
	public String getDefaultRep() {	
		return ""+val;
	}

	@Override
	public double getValAsDouble() {
		return (double)val;
	}

	@Override
	public int getValAsInt() {
		return val;
	}

	@Override
	public void setVal(IGaugeValue val) {
		this.val=val.getValAsInt();
	}

}